package com.example.springboot.mapper;

import com.example.springboot.controller.request.RoomPageRquest;
import com.example.springboot.entity.Room;
import com.example.springboot.entity.Room;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper {

    //    @Select("select * from room")
    List<Room> listRooms();

    void add(Room room);

    void delete(Room room);

    List<Room> listByCondition(RoomPageRquest roomPageRquest);

    Room getById(String roomid);

    void updateById(Room room);

}
